<!--#include file="lib/utf-8.asp"-->
<!--#include file="lib/conn.asp"-->
<!--#include file="lib/saferequest.asp"-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>

<body>
<%
call CheckRights(3,4)
hxid = saferequest("hxid",1)

if saferequest("mm_edit",0)="true" then
	huanxiang=saferequest("huanxiang",0)
	huanxiangjiage=saferequest("huanxiangjiage",1)
	huanxiangjiagef=saferequest("huanxiangjiagef",1)
	set cmd=Server.CreateObject("ADODB.Command")
	cmd.ActiveConnection = conn
	sql="update hx set huanxiang='"&huanxiang&"',huanxiangjiage="&huanxiangjiage&",huanxiangjiagef="&huanxiangjiagef&" where hxid="&hxid
	'response.Write(sql)
	'response.end
	cmd.CommandText = sql
	cmd.Execute
	view_url="manage_hx.asp"
	response.Redirect(view_url)
end if



	Set rs = Server.CreateObject("ADODB.Recordset")
	sql= "SELECT * FROM hx WHERE hxid = " & hxid
	rs.Open sql,conn,1,1

%>
<div class="navbar">
	<a href="manage_hx.asp">还箱信息管理</a>&gt;&gt;<a href="edit_hx.asp?hxid=<%=hxid%>">编辑还箱</a>&gt;&gt;
</div>

<form name="form1" method="post" action="#">
	<div>
		<label>ID</label>
		<%=rs("hxid")%>
	</div>
	<div>
		<label>还箱</label>
		<input name="huanxiang" type="text" value=<%=rs("huanxiang")%> />
	</div>
	<div>
		<label>应收价格</label>
		<input name="huanxiangjiage" type="text" value=<%=rs("huanxiangjiage")%> />
	</div>
	<div>
		<label>应付价格</label>
		<input name="huanxiangjiagef" type="text" value=<%=rs("huanxiangjiagef")%> />
	</div>
	<div>
		<input type="submit" name="Submit" value="提交" />&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="reset" name="Reset" value="重置" />
		<input type="hidden" name="mm_edit" value="true" />
	</div>
</form>
</body>
</html>
<%
rs.Close()
Set rs = Nothing
conn.close
set conn=nothing
%>

